from IO import IO

class Logger():
    LogFunction = IO().print 

    def __init__(self, prefix = "[ log ]", separator = ""):
        self.Prefix = prefix
        self.Separator = separator

    def log(self, text, ending = "\n"):
        self.LogFunction(f'{self.Prefix} {self.Separator} {text}', ending)